import App from './App'

// 引入uView
import uView from "uview-ui";
Vue.use(uView);

//引入uni-simple-router
import {router, RouterMount} from '@/router/index.js';
Vue.use(router);

import { verify } from '@/common/utils/verify.js'
Vue.prototype.$verify = verify

import { show } from '@/common/utils/show.js'
Vue.prototype.$show = show

import { storage } from '@/common/utils/storage.js'
Vue.prototype.$storage = storage

import { time } from '@/common/utils/time.js'
Vue.prototype.$time = time

import { count } from '@/common/utils/count.js'
Vue.prototype.$count = count

import { tools } from '@/common/utils/tools.js'
Vue.prototype.$tools = tools

import { keyConfig } from '@/common/config/keyConfig.js'
Vue.prototype.$keyConfig = keyConfig

import store from './store/index.js'
Vue.prototype.$store = store

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif